package com.ruoyi.common.utils;

public class AvatarUtils {

	/**
	 * 转换微信头像为高清头像
	 * @param avatar
	 * @return
	 */
	public static String getAvatar(String avatar){
		if(StringUtils.isBlank(avatar)){
			return null;
		}
		String next = avatar.substring(avatar.length()-3,avatar.length());
		if("132".equals(next)){
			avatar = avatar.substring(0, avatar.length()-3)+"0";
		}
		return avatar;
	}
}
